﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EnqueteMobile.Repository.Database.Model
{
    [Table("Cliente", Schema = "dbo")]
    public class Cliente
    {
        public Cliente()
        {
            Usuarios = new List<Usuario>();
        }

        [Key]
        [DatabaseGeneratedAttribute(DatabaseGeneratedOption.None)]
        public long Id { get; set; }

        [MaxLength(120)]
        public String Contato { get; set; }

        public long Gerente { get; set; }

        [MaxLength(200)]
        [Required]
        public String RazaoSocial { get; set; }

        [NotMapped]
        public List<Usuario> Usuarios { get; set; }
    }
}